<?php
/**
 * 周舟 hzboye010@163.com
 * addby sublime snippets
 * admin product-order comment controller
 */

namespace Admin\Controller;

use Admin\Controller\AdminController;
use Shop\Api\OrderCommentApi;
use Shop\Api\OrderCommentAttachsApi;

class OrderCommentController extends AdminController {
	protected function _initialize() {
		parent::_initialize();
	}
	//商品评论列表
	public function index(){
		$this->assignTitle('商品评价管理');
		$page  = array('curpage'=>I('p'),'size'=>10);
		$map = [];
		$fields = 'm.nickname,c.*,i.name,i.sku_desc';
		$r = apiCall(OrderCommentApi::QUERY_BY_PRODUCT,array($map,$page,$order,$params,$fields));
		$this->checkApiStatus($r);
		$list = $r['info']['list'];
		$show = $r['info']['show'];


		$this->assign('list',$list);
		$this->assign('show',$show);
		$this->display();
	}

}